package com.yun.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.yun.entity.Files;
import com.yun.entity.User;

public interface UserDao {
	  public int addUser(User user);
	   
	   public User findUserByPhone(@Param("phone")String phone);

   //根据用户名和密码查找。mybatis中有多个参数时，需要使用@Param注解
  public  User findUserByPhoneAndPassword(@Param("phone")String phone,@Param("userPwd")String userPwd);
  
  List<Files> findFilesByUserId(@Param("userId")int userId);
}
